# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        Young  
# Name:         demo5.13
# Description:
# Author:       $赵怡蕾
# Date:         2019/2/14
#-------------------------------------------------------------------------------

# 将"HEllo"转换为小写，运行结果：hello
print("HEllo".lower())
# 将"hollo"转换为大写，运行结果：HELLO
print("hello".upper())
list = ["Python","Ruby","Java","KOTLIN"]
# 在list中查找"Kotlin"，由于大小写的关系，没有找到Kotlin
if "Kotlin" in list:
    print("找到Kotlin了")
else:
    print("未找到Kotlin")
# 迭代list中的每一个元素，首先将元素值抓换为小写，然后再比较
for lang in list:
    if "kotlin" == lang.lower():
        print("找到Kotlin了")
        break;
s = "i not only like Python,but also like Kotlin."
import string
# 将s中的英文单词首字母都转换为大写
# 运行结果：I Not Only Like Python,but Also Like Kotlin.
print(string.capwords(s))